Implementation of Bubble Machine